/**
 * 文件名：LogisticsActualCostFacadeImpl.java
 *
 * 创建人：Fyh - 1009173473@qq.com
 *
 * 创建时间：2020年4月2日 下午5:00:34
 *
 * 版权所有：南京植百汇智能科技服务有限公司
 */
package com.z100h.supplychain.evidence.facade.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jeeplus.core.persistence.Page;
import com.z100h.supplychain.evidence.entity.LogisticsActualCost;
import com.z100h.supplychain.evidence.entity.LogisticsActualCostVo;
import com.z100h.supplychain.evidence.facade.LogisticsActualCostFacade;
import com.z100h.supplychain.evidence.service.LogisticsActualCostService;

/**
 * [描述信息：说明类的基本功能]
 *
 * @author Fyh - 1009173473@qq.com
 * @version 1.0 Created on 2020年4月2日 下午5:00:34
 */
@Service
public class LogisticsActualCostFacadeImpl implements LogisticsActualCostFacade {

	@Autowired
	private LogisticsActualCostService logisticsActualCostService;

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.z100h.supplychain.evidence.facade.LogisticsActualCostFacade#save(com.z100h.supplychain.evidence.entity.LogisticsActualCost)
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年4月2日 下午5:02:18
	 */
	@Override
	public void save(LogisticsActualCost logisticsActualCost) {
		logisticsActualCost.setIdType("AUTO");
		logisticsActualCost.preInsert();
		if (logisticsActualCost.getId() == null) {
			logisticsActualCostService.insert(logisticsActualCost);
		} else {
			logisticsActualCostService.update(logisticsActualCost);
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.z100h.supplychain.evidence.facade.LogisticsActualCostFacade#delete(java.lang.String)
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年4月2日 下午5:02:18
	 */
	@Override
	public void delete(String id) {
		logisticsActualCostService.delete(id);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.z100h.supplychain.evidence.facade.LogisticsActualCostFacade#findByPage(com.jeeplus.core.persistence.Page, com.z100h.supplychain.evidence.entity.LogisticsActualCostVo)
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年4月2日 下午5:02:18
	 */
	@Override
	public Page<LogisticsActualCostVo> findByPage(Page<LogisticsActualCostVo> page,
			LogisticsActualCostVo logisticsActualCostVo) {
		page.setList(logisticsActualCostService.findByPage(logisticsActualCostVo));
		return page;
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.z100h.supplychain.evidence.facade.LogisticsActualCostFacade#findById(java.lang.String)
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年4月2日 下午5:02:18
	 */
	@Override
	public LogisticsActualCostVo findById(String id) {
		return logisticsActualCostService.findById(id);
	}

}
